//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Drawing
{
    class Point3D: IOfficeXmlSerializableAs
    {
        private long x;
        private long y;
        private long z;

        public void ReadXmlAs(string name, ReadContext context)
        {
            using (var c = context.Read(name))
            {
                x = c.GetInteger64("x");
                y = c.GetInteger64("y");
                z = c.GetInteger64("z");
            }
        }

        public void WriteXmlAs(string name, WriteContext context)
        {
            using (var c = context.Write(name))
            {
                c.SetInteger64("x", x );
                c.SetInteger64("y", y );
                c.SetInteger64("z", z );
            }
        }
    }
}